package org.jsola.hr.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.jsola.core.Page;
import org.jsola.core.Result;
import org.jsola.hr.dto.EmpModifyPhoneAddDTO;
import org.jsola.hr.dto.EmpModifyPhoneUpdateDTO;
import org.jsola.hr.query.EmpModifyPhoneQuery;
import org.jsola.hr.vo.EmpModifyPhoneListVO;
import org.jsola.hr.vo.EmpModifyPhoneVO;

import java.util.List;

/**
 * 员工修改手机号
 *
 * @author zhr
 */
@Api(tags = "hr-员工修改手机号")
public interface IEmpModifyPhoneControllerAPI {

    /**
     * 新增员工修改手机号
     * @param empModifyPhoneAddDTO 员工修改手机号新增实体
     * @return 员工修改手机号展示对象
     */
    @ApiOperation(value = "新增员工修改手机号")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empModifyPhoneAddDTO", dataType = "EmpModifyPhoneAddDTO", value = "新增员工修改手机号", paramType = "body")
    })
    Result<EmpModifyPhoneVO> save(EmpModifyPhoneAddDTO empModifyPhoneAddDTO);


    /**
     * 修改员工修改手机号
     * @param empModifyPhoneUpdateDTO 员工修改手机号
     * @return 更新数量
     */
    @ApiOperation(value = "修改员工修改手机号")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empModifyPhoneUpdateDTO", dataType = "EmpModifyPhoneUpdateDTO", value = "修改员工修改手机号", paramType = "body")
    })
    Result<Integer> update(EmpModifyPhoneUpdateDTO empModifyPhoneUpdateDTO);




    /**
     * 删除单个员工修改手机号，彻底删除
     * @param empModifyPhoneId 员工修改手机号id
     * @return 删除数量
     */
    @ApiOperation(value="删除单个员工修改手机号，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empModifyPhoneId", dataType = "String", value = "员工修改手机号id", paramType = "path")
    })
    Result<Integer> delete(String empModifyPhoneId);


    /**
     * 批量删除员工修改手机号，彻底删除
     * @param empModifyPhoneIds 员工修改手机号id集合
     * @return 删除数量
     */
    @ApiOperation(value = "批量删除员工修改手机号，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empModifyPhoneIds", dataType = "String[]", value = "员工修改手机号id数组", paramType = "body" ,allowMultiple = true)
    })
    Result<Integer> deleteBatch(String[] empModifyPhoneIds);


    /**
     * 根据员工修改手机号id查询员工修改手机号详情
     * @param empModifyPhoneId 员工修改手机号id
     * @return 员工修改手机号详情
     */
    @ApiOperation(value="根据员工修改手机号id查询员工修改手机号详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empModifyPhoneId", dataType = "String", value = "员工修改手机号id", paramType = "path")
    })
    Result<EmpModifyPhoneVO> findById(String empModifyPhoneId);


    /**
     * 查询员工修改手机号
     * @param empModifyPhoneQuery 员工修改手机号查询参数
     * @return page
     */
    @ApiOperation(value="查询员工修改手机号")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empModifyPhoneQuery", dataType = "EmpModifyPhoneQuery", value = "员工修改手机号查询参数", paramType = "query")
    })
    Result<List<EmpModifyPhoneListVO>> listAll(EmpModifyPhoneQuery empModifyPhoneQuery);


     /**
     * 分页查询员工修改手机号
     * @param empModifyPhoneQuery 员工修改手机号查询参数
     * @return page
     */
    @ApiOperation(value="分页查询员工修改手机号")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empModifyPhoneQuery", dataType = "EmpModifyPhoneQuery", value = "员工修改手机号查询参数", paramType = "query")
    })
    Result<Page<EmpModifyPhoneListVO>> page(EmpModifyPhoneQuery empModifyPhoneQuery);


}

